package com.zuxia.impservices;

import com.zuxia.iDao.MessageinfoDAOI;
import com.zuxia.iservices.ContactUsServicesI;
import com.zuxia.po.Messageinfo;
/**
 * 联系我们 业务
 * @author 谌华勇
 *2018年11月21日上午11:20:19
 */
public class ContactUsServices implements ContactUsServicesI {

	private MessageinfoDAOI messageinfoDAO;
	public String addMessageInfo(Messageinfo messageInfoPo) {
		//调用留言dao
		if(messageinfoDAO.save(messageInfoPo)==1){
			return "留言成功！";
		}else {
			return "留言失败！";
		}
	}
	
	public MessageinfoDAOI getMessageinfoDAO() {
		return messageinfoDAO;
	}
	public void setMessageinfoDAO(MessageinfoDAOI messageinfoDAO) {
		this.messageinfoDAO = messageinfoDAO;
	}

	
}
